//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    showVideo: false
  },

  //调用子组件的方法
  getSharePoster: function () {
    this.setData({ showVideo: false })
    this.selectComponent('#getPoster').getDiy()
  },

  myEventListener: function (e) {
    this.setData({ showVideo: true })
  },

  onLoad: function () {
    wx.setNavigationBarTitle({
      title: "生成海报",
    })
    this.getImg();
    this.getSharePoster()
  },

  getImg(){
    var pages = getCurrentPages();
    var prevPage = pages[pages.length - 2];
    this.setData({
      user:wx.getStorageSync('userInfo')
    })
  },

})